package com.ruoyi.wretchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wretchant.mapper.MetaWechatMapper;
import com.ruoyi.wretchant.domain.MetaWechat;
import com.ruoyi.wretchant.service.IMetaWechatService;
import com.ruoyi.common.core.text.Convert;

/**
 * 微信好友Service业务层处理
 * 
 * @author 简简单单 Online zuozuo
 * @date 2021-08-18
 */
@Service
public class MetaWechatServiceImpl implements IMetaWechatService 
{
    @Autowired
    private MetaWechatMapper metaWechatMapper;

    /**
     * 查询微信好友
     * 
     * @param id 微信好友主键
     * @return 微信好友
     */
    @Override
    public MetaWechat selectMetaWechatById(Long id)
    {
        return metaWechatMapper.selectMetaWechatById(id);
    }

    /**
     * 查询微信好友列表
     * 
     * @param metaWechat 微信好友
     * @return 微信好友
     */
    @Override
    public List<MetaWechat> selectMetaWechatList(MetaWechat metaWechat)
    {
        return metaWechatMapper.selectMetaWechatList(metaWechat);
    }

    /**
     * 新增微信好友
     * 
     * @param metaWechat 微信好友
     * @return 结果
     */
    @Override
    public int insertMetaWechat(MetaWechat metaWechat)
    {
        return metaWechatMapper.insertMetaWechat(metaWechat);
    }

    /**
     * 修改微信好友
     * 
     * @param metaWechat 微信好友
     * @return 结果
     */
    @Override
    public int updateMetaWechat(MetaWechat metaWechat)
    {
        return metaWechatMapper.updateMetaWechat(metaWechat);
    }

    /**
     * 批量删除微信好友
     * 
     * @param ids 需要删除的微信好友主键
     * @return 结果
     */
    @Override
    public int deleteMetaWechatByIds(String ids)
    {
        return metaWechatMapper.deleteMetaWechatByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除微信好友信息
     * 
     * @param id 微信好友主键
     * @return 结果
     */
    @Override
    public int deleteMetaWechatById(Long id)
    {
        return metaWechatMapper.deleteMetaWechatById(id);
    }
}
